package itheima.d01;

import java.time.LocalDate;
import java.time.Period;

public class Test {
    public static void main(String[] args) {
        LocalDate girlFridend = LocalDate.of(2000, 5, 10);
        LocalDate mine = LocalDate.of(1999, 5, 10);

        Period period = Period.between(girlFridend, mine);
        System.out.println(period.getYears());
        System.out.println(period.getMonths());
        System.out.println(period.getDays());
    }
}
